<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript"

	src="${pageContext.request.contextPath }/managerJs/jquery-1.9.1.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/managerJs/angular.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/managerJs/bootstrap.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/managerJs/ctrl/login.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/managerJs/app.js"></script>
<link
	href="${pageContext.request.contextPath }/assets/css/bootstrap.min.css"
	rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="${pageContext.request.contextPath }/assets/js/MD5.js"></script>
<title>美爱我管理后台</title>
</head>
<script type="text/javascript">
	$(document).ready(function(){
		$("#loginBtn").click(function(){
			var url =  "${pageContext.request.contextPath}/user/managerLogin.do"
			var md5Pwd = faultylabs.MD5($("#password").val());
			var data = {userName:$("#userName").val(),password:md5Pwd};
			$.post(url,data,function(resp){
				alert(JSON.stringify(resp));
			},'json');
		});
	});
</script>
<body>
<form>
username:<input name="userName" id="userName" ><br>
password:<input type="password" name="password" id="password"><br>
<input type="button" value="登录" id="loginBtn">
</form>

</body>
</html>